home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / SymantecStuff / PLStringFuncs.h next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  2.7 KB  |  68 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        PLStringFuncs.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. /*
  15.     PLStringFuncs.h -- C string conversion functions for pascal
  16.         
  17.     Copyright Apple Computer,Inc.  1989, 1990
  18.     All rights reserved
  19.  
  20. */
  21.  
  22. #ifndef __PLSTRINGFUNCS__
  23. #define __PLSTRINGFUNCS__
  24.  
  25. #ifndef    __TYPES__
  26. #include <Types.h>
  27. #endif
  28.  
  29. #ifdef __cplusplus
  30. extern "C" {
  31. #endif
  32.  
  33. pascal short        PLSTRCMP(ConstStr255Param str1, ConstStr255Param str2);
  34. pascal short         PLSTRNCMP(ConstStr255Param str1, ConstStr255Param str2, short num);
  35. pascal StringPtr     PLSTRCPY(StringPtr str1, ConstStr255Param str2);
  36. pascal StringPtr     PLSTRNCPY(StringPtr str1, ConstStr255Param str2, short num);
  37. pascal StringPtr    PLSTRCAT(StringPtr str1, ConstStr255Param str2);
  38. pascal StringPtr     PLSTRNCAT(StringPtr str1, ConstStr255Param str2, short num);
  39. pascal Ptr             PLSTRCHR(ConstStr255Param str1, short ch1);
  40. pascal Ptr             PLSTRRCHR(ConstStr255Param str1, short ch1);
  41. pascal Ptr             PLSTRPBRK(ConstStr255Param str1, ConstStr255Param str2);
  42. pascal short         PLSTRSPN(ConstStr255Param str1, ConstStr255Param str2);
  43. pascal Ptr             PLSTRSTR(ConstStr255Param str1, ConstStr255Param str2);
  44. pascal short         PLSTRLEN(ConstStr255Param str);
  45. pascal short        PLPOS(ConstStr255Param str1, ConstStr255Param str2);
  46.  
  47. #ifdef __cplusplus
  48. inline short        PLstrcmp(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRCMP(str1, str2); }
  49. inline short         PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, short num) { return PLSTRNCMP(str1, str2, num); }
  50. inline StringPtr     PLstrcpy(StringPtr str1, ConstStr255Param str2) { return PLSTRCPY ( str1, str2); }
  51. inline StringPtr     PLstrncpy(StringPtr str1, ConstStr255Param str2, short num) { return PLSTRNCPY(str1, str2, num); }
  52. inline StringPtr    PLstrcat(StringPtr str1, ConstStr255Param str2) { return PLSTRCAT(str1, str2); }
  53. inline StringPtr     PLstrncat(StringPtr str1, ConstStr255Param str2, short num) { return PLSTRNCAT ( str1, str2, num ); }
  54. inline Ptr             PLstrchr(ConstStr255Param str1, short ch1) { return PLSTRCHR(str1, ch1); }
  55. inline Ptr             PLstrrchr(ConstStr255Param str1, short ch1) { return PLSTRRCHR( str1, ch1); }
  56. inline Ptr             PLstrpbrk(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRPBRK(str1, str2); }
  57. inline short         PLstrspn(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRSPN(str1, str2); }
  58. inline Ptr             PLstrstr(ConstStr255Param str1, ConstStr255Param str2) { return PLSTRSTR(str1, str2); }
  59. inline short         PLstrlen(ConstStr255Param str) { return PLSTRLEN(str); }
  60. inline short        PLpos(ConstStr255Param str1, ConstStr255Param str2) { return PLPOS(str1, str2); }
  61. #endif
  62.  
  63. #ifdef __cplusplus
  64. }
  65. #endif
  66.  
  67. #endif
  68.